package org.wmq.skyserver.service;

import org.wmq.skycommon.exception.DeleteNotAllowedException;
import org.wmq.skycommon.pojo.DTO.DishDTO;
import org.wmq.skycommon.pojo.DTO.DishPageDTO;
import org.wmq.skycommon.pojo.VO.DishVO;
import org.wmq.skycommon.pojo.entity.Dish;
import org.wmq.skycommon.pojo.entity.PageResult;

import java.util.List;

public interface DishService {

    public abstract void saveWithFlavor(DishDTO dishDTO);

    public abstract PageResult pageQuery(DishPageDTO dishPageDTO);

    public abstract void deleteBatch(List<Long> ids) throws DeleteNotAllowedException;

    public abstract DishVO getByIdWithFlavor(Long id) ;

    public abstract void updateWithFlavor(DishDTO dishDTO);

    public abstract List<Dish> list(Long categoryId);
}
